Capsule API Example
Loading...
Searching...
No Matches
CEmotions.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6#include "CDevice.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12CLC_CLASS_WN(ClassificationEmotionsPrivate, clCEmotions);
13
14typedef struct clCEmotions_States {
15 int64_t timestampMilli = -1;
16 float attention = -1.F;
17 float relaxation = -1.F;
18 float cognitiveLoad = -1.F;
19 float cognitiveControl = -1.F;
20 float selfControl = -1.F;
22
23CL_DLL clCEmotions clCEmotions_Create(clCDevice device, clCError* error) NOEXCEPT;
24
27
28typedef void (*clCEmotions_ErrorHandler)(clCEmotions, const char*) NOEXCEPT;
30
31#ifdef __cplusplus
32}
33#endif
#define NOEXCEPT
Definition CDefinesPrivate.h:82
#define CL_DLL
Definition CDefinesPrivate.h:51
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:84
CL_DLL clCEmotions clCEmotions_Create(clCDevice device, clCError *error) NOEXCEPT
void(* clCEmotions_ErrorHandler)(clCEmotions, const char *) NOEXCEPT
Definition CEmotions.h:28
void(* clCEmotions_EmotionalStatesUpdateEvent)(clCEmotions, const clCEmotions_States *) NOEXCEPT
Definition CEmotions.h:25
struct clCEmotions_States clCEmotions_States
CL_DLL void clCEmotions_SetOnEmotionalStatesUpdateEvent(clCEmotions emotions, clCEmotions_EmotionalStatesUpdateEvent handler) NOEXCEPT
CL_DLL void clCEmotions_SetOnErrorEvent(clCEmotions emotions, clCEmotions_ErrorHandler handler) NOEXCEPT
Definition CEmotions.h:14
float cognitiveControl
Definition CEmotions.h:19
float relaxation
Definition CEmotions.h:17
float attention
Definition CEmotions.h:16
float selfControl
Definition CEmotions.h:20
float cognitiveLoad
Definition CEmotions.h:18
int64_t timestampMilli
Definition CEmotions.h:15
Definition CError.h:28